package com.miracle.login.module.di.module;

import com.miracle.basemvp.di.scope.ActivityScope;
import com.miracle.login.module.mvp.contract.LoginContract;
import com.miracle.login.module.mvp.model.LoginModel;

import dagger.Module;
import dagger.Provides;

/**
 * com.miracle.login.module.di.module
 * (c)2018 AIR Times Inc. All rights reserved.
 *
 *
 * @author WangJQ
 * @version 1.0
 * @date 2018/6/29 16:30
 * @see com.miracle.login.module.di.module
 */
@ActivityScope
@Module
public class LoginModule {
    private LoginContract.View mView;

    public LoginModule(LoginContract.View view) {
        mView = view;
    }

    @ActivityScope
    @Provides
    LoginContract.View provideLoginView() {
        return mView;
    }

    @ActivityScope
    @Provides
    LoginContract.Model provideLoginModel(LoginModel model) {
        return model;
    }
}
